package Teste;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author juan__000
 */
public class Usuario {
    
    public ObjectOutputStream saida;
    public ObjectInputStream entrada;
    private Socket cliente;
            
    public void conecta() throws IOException{
        this.cliente= new Socket("localhost", 5100);
        this.saida = new ObjectOutputStream(cliente.getOutputStream());
        this.entrada = new ObjectInputStream(cliente.getInputStream());
    }
 
}
